﻿<%@ Page Language="C#" MasterPageFile="~/Front.Master" AutoEventWireup="true" CodeBehind="UserInRole.aspx.cs" Inherits="HRProject.User.UserInRole" Title="Untitled Page" %>
<asp:Content ID="IncludePlaceHolder" ContentPlaceHolderID="IncludePlaceHolder" runat="server">
    <link href="/css/tree.css" rel="stylesheet" type="text/css"/>
    <script type="text/javascript" language="javascript" src="/js/tree.js"></script>
    <script type="text/javascript" language="javascript" src="/js/user.js"></script>
</asp:Content>
<asp:Content ID="TitleIconPlaceHolder" ContentPlaceHolderID="TitleIconPlaceHolder" runat="server">
    <img alt="" src="/image/layout/icon/UserIcon.png" />
</asp:Content>
<asp:Content ID="TitleNamePlaceHolder" ContentPlaceHolderID="TitleNamePlaceHolder" runat="server">
    Agent in role 
</asp:Content>
<asp:Content ID="MainPanelPlaceHolder" ContentPlaceHolderID="MainPanelPlaceHolder" runat="server">

        <div class="table-row-label">Search by username</div>
        <div class="table-row-content">
            <asp:TextBox ID="tbxUserNameFilter" runat="server"></asp:TextBox>
        </div>
        <div class="table-row-content">
            <asp:Button ID="btnSearch" runat="server" Text="Search" 
                onclick="btnSearch_Click" />
        </div>
        <div class="table-row-label">Agents</div>
        <div class="table-row-content">
            <asp:GridView ID="dgvUsers" runat="server" AutoGenerateColumns="False">
                <Columns>
                    <asp:BoundField DataField="Id" Visible="False" />
                    <asp:BoundField DataField="UserName" HeaderText="User name" />
                    <asp:BoundField DataField="InRolesToHtml" HeaderText="In roles" HtmlEncode="False" />
                    <asp:BoundField DataField="AddButton" HtmlEncode="False" 
                        ShowHeader="False" />
                </Columns>
            </asp:GridView>
        </div>
    
</asp:Content>
